<template>
	<om-page :title="pageTitle">
		<view class="page__bd">
			<uni-list>
				<view v-for="(item, index) in datas" :key="index">
					<uni-list-item :title="item" @click="infoTab(item)" ></uni-list-item>
				</view>
			</uni-list>
		</view>
	</om-page>
</template>

<script>
	export default {
		data() {
			return {
				datas:[],
				pageTitle:""
			}
		},
		methods: {
			loadData() {
			    let _that = this
				_that.om.request("wxAttend/getAttendExMonthList").then(res=>{
					if (res.succeed) {
					  _that.datas = res.value
					}
				})
			  },
			  infoTab(item) {
				  uni.navigateTo({
					url:'./orderlist?date=' + item
				  })
			  }
		},
		onLoad(options) {
			this.pageTitle = options.title || '考勤异常排名'
			 uni.setNavigationBarTitle({
			     title: this.pageTitle
			})
			this.loadData()
		}
	}
</script>

<style>

</style>
